using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.WebControls;

namespace NCS.Module.FeedBack.Admin.UserControls
{
	public partial class Editor : System.Web.UI.UserControl
	{
		public string HTMLValue
		{
			set { txtContent.Html = value; }
			get
			{
				string imgHost = "http://" + Request.Url.Host;
				if (!Request.Url.IsDefaultPort) imgHost += ":" + Request.Url.Port;
				return txtContent.Html.Replace(imgHost, string.Empty);
				;
			}
		}

		public string UploadDir
		{
			set { txtContent.SetPaths(new string[] { value }, EditorFileTypes.All, EditorFileOptions.All); }
		}
		protected void Page_Load(object sender, EventArgs e)
		{

		}
	}
}